package com.lmt_14;

import java.io.*;

public class OutputStreamWriterTest {
    public static void main(String[] args) {
        try(
                OutputStream outputStream = new FileOutputStream("src/com/lmt_14/1.txt",true);
                OutputStreamWriter wri = new OutputStreamWriter(outputStream,"UTF-8");
                Writer writer = new BufferedWriter(wri);
        ){
            writer.write("gdnbkldjg中国 ");

        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
